// ==UserScript==
// @name           Auto Login to SFEE
// @namespace      oasis.mitra.com
// @description    Click the login link to automatically log in.
// @include        http://oasis.mitra.com/sf/sfmain/do/home
// @include        http://oasis.mitra.com/sf/sfmain/do/myPage
// ==/UserScript==
var links = document.links;
for(var i = 0; i < links.length; i++) 
{
	if( links[i] == "javascript:submitForm(document.getElementById('localLogin'),%20'submit');" ||
	    links[i] == "javascript:submitForm(document.getElementById('localLogin'), 'submit');" ||
	    links[i] == "javascript:submitForm(document.getElementById('globalLogin'), 'submit');" ||
	    links[i] == "javascript:submitForm(document.getElementById('globalLogin'),%20'submit');")
	{
		window.location.href = links[i];
		break;
	}
}
